//读取文件
//1.引入文件
/* const wj = require('fs')
wj.readFile('../fs.js', (err, data) => {
    if (err) throw err;
    console.log(data.toString());
}) */
const wj = require('fs')
const a = new Promise(function (resolve, reject) {
    wj.readFile('../fs.js', (err, data) => {
        if (err) reject(err);
        resolve(data)
    })
}).then((data) => {
    console.log(data.toString());
})